﻿#pragma once


#include "CheckProjectListCtrl.h"
//#include "CheckProjectPropertyCtrl.h"
#include "widgets/zxCheckProjectPropertyCtrl.h"
// CCheckProjectBrowserDialog 对话框

class CCheckProjectBrowserDialog : public CDialogEx
{
	DECLARE_DYNAMIC(CCheckProjectBrowserDialog)

public:
	CCheckProjectBrowserDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CCheckProjectBrowserDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_CHECK_PROJECT_BROWSER };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

protected:
	zxCheckProjectPropertyCtrl m_props;
	CCheckProjectListCtrl m_list;
	z_int32	m_nProjCode;

protected:
	void	AdjustLayout();
	void	PopulateProjectProperty(int nProjItem);

public:
	z_int32	GetSelectedProjectCode();

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnNMClickListProject(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMDblclkListProject(NMHDR *pNMHDR, LRESULT *pResult);
};
